/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package aic.beans;

import java.util.Date;
import javax.xml.bind.annotation.adapters.XmlAdapter;

public class DateAdapter extends XmlAdapter<Long, Date> {

    public Date unmarshal(Long val) throws Exception {
        return new Date(val);
    }

    public Long marshal(Date val) throws Exception {
        return val.getTime();
    }
}
